package DailyQuestion;

// 巧用int类型对小数的四舍五入
public class 取整购买后的账户余额_2806 {
    public int accountBalanceAfterPurchase(int purchaseAmount) {
        int roundedAmount = (purchaseAmount + 5) / 10 * 10;
        return 100 - roundedAmount;
    }
}
